package com.imashimaro.controller;

import com.imashimaro.model.TestModel;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
public class TestController {
    /**
     *
     * @return
     */
    @RequestMapping(value = "/demo1")
    public Object demo1() {
        return new TestModel();
    }

    @RequestMapping(value = "/demo2")
    public Object demo2() {
        TestModel model = new TestModel();
        model.setScore(new BigDecimal("1.000"));
        model.setHeight(3.27);
        return model;
    }
}
